package com.ld.security.auth.common.base.entity;

import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.ListString;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.shiro.model.RoleModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户角色
 */
@Data
public class JwtRole extends SuperEntity implements RoleModel {

	@ApiModelProperty("名称")
	@SqlKey(SqlCondition.like)
	private String label;

	@ApiModelProperty("编码")
	private String code;

	@ApiModelProperty("权限集合")
	private ListString permissionIds;

	@ApiModelProperty("用户集合")
	private ListString managerUserIds;

	@ApiModelProperty("部门集合")
	private ListString managerDeptIds;
}
